package com.njupt.wuaiagent.demo.invoke;

import dev.langchain4j.community.model.dashscope.QwenChatModel;

/**
 * @Author: wujiaming
 * @CreateTime: 2025/5/10 16:25
 * @Description:
 * @Version: 1.0
 */


public class LangChainAiInvoke {

    public static void main(String[] args) {
        QwenChatModel qwenChatModel = QwenChatModel.builder()
                .apiKey(TestApiKey.API_KEY)
                .modelName("qwen-max")
                .build();
        String result = qwenChatModel.chat("我是程序员 wjm，正在学习Ai智能体项目");
        System.out.println(result);
    }
}
